cmake_minimum_required (VERSION 3.10)

project(opm-demo C CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_TYPE DEBUG)

find_package(opm-common REQUIRED)

file(GLOB PROJECT_SOURCES CONFIGURE_DEPENDS src/*.cpp include/*.)

add_executable(
    ${PROJECT_NAME}
    ${PROJECT_SOURCES}
)

target_include_directories(${PROJECT_NAME} PUBLIC include)

target_link_libraries(
    ${PROJECT_NAME} PRIVATE
    ${opm-common_LIBRARIES}
)